@@ -1,5 +1,12 @@
See http://github.com/miyagawa/cpanminus/ for the latest development.
+1.1008 Wed Jan 26 14:05:51 PST 2011
+ - Fixed glitches due to the deletion of Module::Metadata::Version
+
+1.1007 Tue Jan 18 09:39:05 PST 2011
+ - Fixed installation documents
+ - Added PERL_CPANM_NO_AUTOMATED_TESTING to unset AUTOMATED_TESTING to find which modules break (mst)
+
1.1006 Thu Dec 16 11:27:29 PST 2010
- Fixed docs to use curl instead of wget because of its cert bug
- Fixed the usage of local() where PERL5_CPANPLUS_IS_RUNING was leaking (dg) #75
@@ -1,6 +1,6 @@
--- #YAML:1.0
name: App-cpanminus
-version: 1.1006
+version: 1.1008
abstract: Get, unpack, build and install modules from CPAN.
author: []
license: perl
@@ -18,7 +18,7 @@ my %fatpacked;
$fatpacked{"App/cpanminus.pm"} = <<'APP_CPANMINUS';
package App::cpanminus;
- our $VERSION = "1.1006";
+ our $VERSION = "1.1008";
=head1 NAME
@@ -59,7 +59,7 @@ $fatpacked{"App/cpanminus.pm"} = <<'APP_CPANMINUS';
Otherwise,
cd ~/bin
- curl -O http://xrl.us/cpanm
+ curl -LO http://xrl.us/cpanm
chmod +x cpanm
# edit shebang if you don't have /usr/bin/env
@@ -220,7 +220,7 @@ $fatpacked{"App/cpanminus/script.pm"} = <<'APP_CPANMINUS_SCRIPT';
use constant WIN32 => $^O eq 'MSWin32';
use constant SUNOS => $^O eq 'solaris';
- our $VERSION = "1.1006";
+ our $VERSION = "1.1008";
$VERSION = eval $VERSION;
my $quote = WIN32 ? q/"/ : q/'/;
@@ -873,7 +873,10 @@ $fatpacked{"App/cpanminus/script.pm"} = <<'APP_CPANMINUS_SCRIPT';
sub test {
my($self, $cmd, $distname) = @_;
return 1 if $self->{notest};
- local $ENV{AUTOMATED_TESTING} = 1;
+
+ # http://www.nntp.perl.org/group/perl.perl5.porters/2009/10/msg152656.html
+ local $ENV{AUTOMATED_TESTING} = 1
+ unless $self->env('NO_AUTOMATED_TESTING');
return 1 if $self->run_timeout($cmd, $self->{test_timeout});
if ($self->{force}) {
@@ -1148,6 +1151,7 @@ $fatpacked{"App/cpanminus/script.pm"} = <<'APP_CPANMINUS_SCRIPT';
my($self, $mod, $want_ver) = @_;
require Module::Metadata;
+ require Module::Metadata::Version; # Module::Metadata might be loaded from user's $PERL5LIB missing ::Version
my $meta = Module::Metadata->new_from_module($mod, inc => $self->{search_inc})
or return 0, undef;
@@ -5658,7 +5662,8 @@ s/^ //mg for values %fatpacked;
unshift @INC, sub {
if (my $fat = $fatpacked{$_[1]}) {
- open my $fh, '<', \$fat;
+ open my $fh, '<', \$fat
+ or die "FatPacker error loading $_[1] (could be a perl installation issue?)";
return $fh;
}
return
@@ -1,5 +1,5 @@
package App::cpanminus;
-our $VERSION = "1.1006";
+our $VERSION = "1.1008";
=head1 NAME
@@ -40,7 +40,7 @@ latest version.
Otherwise,
cd ~/bin
- curl -O http://xrl.us/cpanm
+ curl -LO http://xrl.us/cpanm
chmod +x cpanm
# edit shebang if you don't have /usr/bin/env